home *** CD-ROM | disk | FTP | other *** search
/ Pascal Super Library / Pascal Super Library (CW International)(1997).bin / STRINGS / PACKAGE6 / GREATER.DOC < prev    next >
Text File  |  1990-07-25  |  1KB  |  37 lines

  1. ----------------------------------------------------------------------------
  2. FirstGreaterThanSecond
  3. ----------------------------------------------------------------------------
  4.  
  5.  
  6. declaration:    function FirstGreaterThanSecond (     String1,
  7.                                                       String2:
  8.                                                         TypeString):
  9.                                                           boolean;
  10.  
  11. purpose:        Returns a boolean; if String1 is greater than String2 then
  12.                 boolean is set to true, if they aren't then it is set to
  13.                 false.
  14.  
  15. precondition:   String1 and String2 - both are two Strings that have been
  16.                 initialized and have a value of TypeString.
  17.  
  18. postcondition:  String1 and String2 do not change.  The function is either
  19.                 set to true or false.
  20.  
  21. special cases:  none
  22.  
  23. example:        begin
  24.                 .
  25.                 .
  26.                 .
  27.                 if String1 > String2 then
  28.                   FirstGreaterThanSecond := true
  29.                 else
  30.                   FirstGreaterThanSecond := false
  31.                 .
  32.                 .
  33.                 .
  34.                 end
  35.  
  36. ----------------------------------------------------------------------------
  37.